//
// Created by hi on 24-11-14.
//
//流程控制

#include <stdio.h>
int main() {
    int age = 0;
    printf("Enter your age: ");
    scanf("%d", &age);
    if (age >= 18) {
        printf("You are eligible for this age");
    }else {
        printf("You are not eligible for this age");
    }
    char name[10] = "";
    printf("\nEnter your name:");
    scanf("%s", &name);
    if(name=="霸霸") {
        printf("Your name is 霸霸");
    }else if(name=="麻麻") {
        printf("Your name is 麻麻");
    }else {
        printf("Your name is %s",name);
    }
    switch (age) {
        case 18:
            printf("\n刚满18岁~~");
            break;
        case 0:
            printf("\n没出生呢");
            break;
        default:
            printf('\n %d',2024-age);
            const int yearsOld =2024 - (2024 - age);
            printf("\n你的岁数是%d", yearsOld);
            break;
    }
}
